//
//  Mytools.h
//  AllPass
//
//  Created by apple on 2021/11/1.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface Mytools : NSObject
+ (NSString *)documentsDirectory;
//tableview无数据占位
+(void)NeedResetNoViewWithView:(UIView*)tab andArr:(NSArray*)arr;
+(void)NeedResetNoViewWithView:(UIView*)tab andArr:(NSArray*)arr point:(CGPoint)poi;
+(void)NeedResetNoViewWithView:(UIView*)tab msg:(NSString*)msg andArr:(NSArray*)arr image:(nullable UIImage*)img;
+ (NSArray *)matchString:(NSString *)string toRegexString:(NSString *)regexStr;
//字符串转日期
+(NSDate*)dateStrToDate:(NSString *)dateStr;
+(NSDate*)dateStrToDate:(NSString *)dateStr withFormat:(NSString*)format;
//日期转字符串
+(NSString *)dateToDateStr:(NSDate*)date;
@end

NS_ASSUME_NONNULL_END
